home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / VISUALBA / VB_SMPL.ZIP / SQLSMTS.EXE / README.TXT next >
Text File  |  1994-04-14  |  1KB  |  24 lines

  1. SQLSmts: Using Dynaset SQL Statements From a List Box in VB 3.0
  2.  
  3. The sample SQL_PUB.MAK project contains the file SQL_PUB.FRM. 
  4.  
  5. The idea of the sample is to demonstrate how to use the CreateDynaset method
  6. and a Dynaset object variable with a variable that you have the user select from a 
  7. List box. The result of the search will bring up the entire record to be 
  8. read or updated. This sample uses an SQL statement with a string variable in
  9. the Where clause.
  10.  
  11. You first want to select an entry in the List1 list box control by
  12. clicking on a item contained in the list box. Next you will see all of the
  13. text boxes become filled with the other fields that pertain to the record
  14. that you selected.  Then you can either start editing the fields of the
  15. record that you desire to change or select the 'Push to make ReadOnly'
  16. command button to prevent changes from being made. There are also some
  17. additional command buttons, one is for setting the Read/Write options on
  18. the text boxes, another for saving changes made to the data and the last one
  19. for not saving changes to the data.
  20.  
  21. You can continue the same sequence with different selections from the List1
  22. list box.
  23.  
  24.